API Documentation
Public Member Functions | List of all members
nkDebug::TestRunException Class Referencefinal

An exception raised when a test fails during an execution. More...

Public Member Functions

 TestRunException ()
 
 TestRunException (const nkMemory::StringView &rejectionReason)
 
nkMemory::StringView getRejectionReason () const
 
nkMemory::BufferView< TestStackLevelgetRejectionStack () const
 

Detailed Description

An exception raised when a test fails during an execution.

Constructor & Destructor Documentation

◆ TestRunException() [1/2]

nkDebug::TestRunException::TestRunException ( )

Default constructor, without message.

◆ TestRunException() [2/2]

nkDebug::TestRunException::TestRunException ( const nkMemory::StringView rejectionReason)

Messaged constructor.

Parameters
rejectionReasonThe reason for the test rejection.

Member Function Documentation

◆ getRejectionReason()

nkMemory::StringView nkDebug::TestRunException::getRejectionReason ( ) const
Returns
The rejection reason.

◆ getRejectionStack()

nkMemory::BufferView<TestStackLevel> nkDebug::TestRunException::getRejectionStack ( ) const
Returns
The stack at the moment of the exception.

The documentation for this class was generated from the following file: